package com.eascs.web.o2o.web.dao;


import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Repository;

import com.eascs.app.dao.JdbcSession;
import com.eascs.app.dao.PageResult;
import com.eascs.app.dao.SqlPageQuery;

@Repository
public class BidmDao {
	@Inject
	JdbcSession jdbcSessionBidm;
	
	@Inject
	JdbcSession jdbcSessionBiods;
	
	@Inject
	JdbcSession jdbcSessionBidw;
	
	
	public <T> PageResult<T> findDataWithPage(SqlPageQuery<T> sqlPageQuery) {
		return jdbcSessionBidm.findDataWithPage(sqlPageQuery);
	}
	
	public <T> PageResult<T> findDataWithPageByDw(SqlPageQuery<T> sqlPageQuery) {
		return jdbcSessionBidm.findDataWithPage(sqlPageQuery);
	}
	
	public  String  getSql(String sql){
		return jdbcSessionBidm.getSql(sql);
	}
	
	
	public List<Object[]> findObjectsListByBiods(String sql,Object[] params){
		return jdbcSessionBidm.findObjectsList(sql, params);
	}
	
}
